From 2777078e21731634aa4df54f7f19543cf75e3beb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 14 Nov 2011 09:23:01 -0500 Subject: [PATCH] Add combobox a11y tests --- tests/a11y/Makefile.am | 3 +- tests/a11y/combos.txt | 227 +++++++++++++++++++++++++++++++++++++++++ tests/a11y/combos.ui | 42 ++++++++ 3 files changed, 271 insertions(+), 1 deletion(-) create mode 100644 tests/a11y/combos.txt create mode 100644 tests/a11y/combos.ui diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am index 89be4bfc03..6bc6267cad 100644 --- a/tests/a11y/Makefile.am +++ b/tests/a11y/Makefile.am @@ -62,4 +62,5 @@ EXTRA_DIST += \ entries.ui entries.txt \ scale-drawvalue.ui scale-drawvalue.txt \ placeholder-text.ui placeholder-text.txt \ - menu.ui menu.txt + menu.ui menu.txt \ + combos.ui combos.txt diff --git a/tests/a11y/combos.txt b/tests/a11y/combos.txt new file mode 100644 index 0000000000..7e49ab5448 --- /dev/null +++ b/tests/a11y/combos.txt @@ -0,0 +1,227 @@ +window1 + "window" + index: 0 + state: enabled resizable sensitive showing visible + toolkit: gtk + + layer: window + alpha: 1 + box1 + "filler" + parent: window1 + index: 0 + state: enabled horizontal sensitive + toolkit: gtk + + layer: widget + alpha: 1 + label1 + "label" + parent: box1 + index: 0 + name: Combo: + label-for: combo1 + state: enabled multi-line sensitive visible + toolkit: gtk + + layer: widget + alpha: 1 + + text: Combo: + character count: 6 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + direction: + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + combo1 + "combo box" + parent: box1 + index: 1 + labelled-by: label1 + state: enabled sensitive visible + toolkit: gtk + + layer: widget + alpha: 1 + + action 0 name: press + action 0 keybinding: c + + unnamed-GtkMenuAccessible-0 + "menu" + parent: combo1 + index: 0 + state: enabled selectable sensitive + toolkit: gtk + + layer: popup + alpha: 1 + + combo2 + "combo box" + parent: box1 + index: 2 + state: enabled sensitive visible + toolkit: gtk + + layer: widget + alpha: 1 + + action 0 name: press + + unnamed-GtkMenuAccessible-1 + "menu" + parent: combo2 + index: 0 + state: enabled selectable sensitive + toolkit: gtk + + layer: popup + alpha: 1 + + + "text" + parent: combo2 + index: 1 + state: editable enabled focusable selectable sensitive single-line visible + toolkit: gtk + + layer: widget + alpha: 1 + + text: + character count: 0 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + direction: + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: activate + combo3 + "combo box" + parent: box1 + index: 3 + state: enabled sensitive visible + toolkit: gtk + + layer: widget + alpha: 1 + + action 0 name: press + + unnamed-GtkMenuAccessible-2 + "menu" + parent: combo3 + index: 0 + state: enabled selectable sensitive + toolkit: gtk + + layer: popup + alpha: 1 + + combo4 + "combo box" + parent: box1 + index: 4 + state: enabled sensitive visible + toolkit: gtk + + layer: widget + alpha: 1 + + action 0 name: press + + unnamed-GtkMenuAccessible-3 + "menu" + parent: combo4 + index: 0 + state: enabled selectable sensitive + toolkit: gtk + + layer: popup + alpha: 1 + + + "text" + parent: combo4 + index: 1 + state: editable enabled focusable selectable sensitive single-line visible + toolkit: gtk + + layer: widget + alpha: 1 + + text: + character count: 0 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + direction: + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + action 0 name: activate diff --git a/tests/a11y/combos.ui b/tests/a11y/combos.ui new file mode 100644 index 0000000000..8ad2416f6e --- /dev/null +++ b/tests/a11y/combos.ui @@ -0,0 +1,42 @@ + + + + + False + popup + + + + + True + _Combo: + True + combo1 + + + + + True + + + + + True + True + + + + + True + + + + + True + True + + + + + + -- 2.30.2